<?php

class MyJobWidget extends CWidget {
    public function init() {
    	$criteria=new CDbCriteria;
    	$criteria->condition ="user_id=".Yii::app()->user->id;
    	$criteria->limit=5;
    	$data = Job::model()->findAll($criteria);
        $this->render('myjob',array('data'=>$data));
    }

}

?>
